package com.ajl.wx.module.websocket;


import com.ajl.wx.beans.po.WechatUserPO;

import javax.websocket.Session;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public interface IWebSocket {

    public void addUser(String id, Session session);

    public void remove(String id);


    public void broadcastMessage(WechatUserPO user, String msg);

    public List<Session> listSocketSession();

    public List<String> listSessionId();


    public boolean isOnline(String openId);

    public LinkedList<Map<String,Object>> listOffline();
}
